import { Module } from 'vuex'
import { LOGIN_INFO_MODULE } from './interface'
import * as Types from './types'
/**
 * 登录相关字段
 */
const state: Record<string, any> = {
  loginInfo: {}
}
const user: Module<LOGIN_INFO_MODULE, any> = {
  namespaced: true,
  state,
  mutations: {
    async [Types.SET_LOGIN_INFO_DATA](state, data) {
      Object.assign(state, data)
    },
  },
  actions: {
  }
}

export default user
